<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LibrarianViewReservedBooks.ascx.cs" Inherits="LibrarianViewReservedBooks" %>
<h3>Librarian View Reserved Books</h3>
<br />
<%--<asp:Button ID="btnGenerate" runat="server" Text="View Reserved Books" onclick="btnGenerate_Click" />
<asp:Button ID="btnHideReserved" runat="server" Text="Hide Reserved Books" onclick="btnHideReserved_Click" />
<asp:Button ID="btnViewReady" runat="server" Text="View Books Ready For Pickup" 
    onclick="btnViewReady_Click" />
<asp:Button ID="btnHideReady" runat="server" Text="Hide Books Ready For Pickup" 
    onclick="btnHideReady_Click" />--%>
<%--<asp:RadioButton ID="rbReservedBooks" runat="server" Text="Reserved Books to Pull" GroupName="books"
    OnClick="rbReservedBooks_CheckedChanged" />
<asp:RadioButton ID="rbReadyBooks" runat="server" Text="Books Ready for Pickup" GroupName="books"
    OnClick="rbReadyBooks_CheckedChanged" />--%>
    
<asp:CheckBox ID="chkbxReservedBooks" runat="server" Text="Reserved Books to Pull"
    OnCheckedChanged="chkbxReservedBooks_CheckedChanged" AutoPostBack="True" />
&nbsp;
<asp:CheckBox ID="chkbxReadyBooks" runat="server" Text="Books Ready for Pickup" 
    OnCheckedChanged="chkbxReadyBooks_CheckedChanged" AutoPostBack="True" />
    
<br />
<asp:Label ID="lblErrorMsg" runat="server" ForeColor="Red"></asp:Label>
<br />

<asp:GridView ID="gridView_ReservedBooks" runat="server" AllowPaging="True" AutoGenerateColumns="False" 
    OnPageIndexChanging="gridView_ReservedBooks_PageIndexCanging" 
    onselectedindexchanged="gridView_ReservedBooks_SelectedIndexChanged" CaptionAlign="Top"
    Caption="A list of books reserved by patrons that need to be pulled and set aside.">
    <Columns>
        <asp:BoundField DataField="ReserveId" HeaderText="ID"/>
        <asp:BoundField DataField="LastName" HeaderText="Last Name" />
        <asp:BoundField DataField="FirstName" HeaderText="First Name" />
        <asp:BoundField DataField="PhoneNumber" HeaderText="Phone Number" DataFormatString="{0:(###) ###-####}"/>
        <asp:BoundField DataField="PreferredContactMethod"  
            HeaderText="Preferred Method <br /> of Contact" HtmlEncode="False" />
        <asp:BoundField DataField="Title" HeaderText="Title" />
        <asp:BoundField DataField="Author" HeaderText="Author" />
        <asp:BoundField DataField="DateReserved" DataFormatString="{0:M/d/yy}" 
            HeaderText="Date Reserved" />
        <asp:BoundField DataField="CallNumber" HeaderText="Call Number" />
        <asp:CommandField HeaderText="Change Status to <br /> Ready for Pickup" 
            SelectText="Ready" ShowSelectButton="True"  
            ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
        </asp:CommandField>
    </Columns>
</asp:GridView>

<asp:GridView ID="gridView_ReadyBooks" runat="server" AllowPaging="True" AutoGenerateColumns="False" 
    OnPageIndexChanging="gridView_ReadyBooks_PageIndexCanging" 
    onselectedindexchanged="gridView_ReadyBooks_SelectedIndexChanged" CaptionAlign="Top"
    Caption="A list of books that have been set aside for a patron and are ready for pickup" >
    <Columns>
        <asp:BoundField DataField="ReserveId" HeaderText="ID"/>
        <asp:BoundField DataField="LastName" HeaderText="Last Name" />
        <asp:BoundField DataField="FirstName" HeaderText="First Name" />
        <asp:BoundField DataField="PhoneNumber" HeaderText="Phone Number" DataFormatString="{0:(###) ###-####}"/>
        <asp:BoundField DataField="PreferredContactMethod"  
            HeaderText="Preferred Method <br /> of Contact" HtmlEncode="False" />
        <asp:BoundField DataField="Title" HeaderText="Title" />
        <asp:BoundField DataField="Author" HeaderText="Author" />
        <asp:BoundField DataField="DateReserved" DataFormatString="{0:M/d/yy}" 
            HeaderText="Date Reserved" />
        <asp:BoundField DataField="CallNumber" HeaderText="Call Number" />
        <asp:CommandField HeaderText="Cancel" SelectText="Cancel" ShowSelectButton="True"  
            ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
        </asp:CommandField>
    </Columns>
</asp:GridView>

